package edu.sctu.practice.class02.Wangpeng.Test12;

/**
 * Created by wp on 2015/11/9.
 */
public class Car {
    private int tires;
    private String color;
    private int load;

    public Car(int tires){
        this.tires=tires;
        System.out.println("轮胎个数:"+tires);
    }
    public Car(String color){
        this.color=color;
        System.out.println("汽车颜色:"+color);
    }
    public Car(int tires,String color,int load){
        this(tires);
        this.color=color;
        System.out.println("汽车颜色"+color);
        this.load=load;
        System.out.println("重量"+load);
    }
    void downspeed(){
        System.out.println("减速");
    }
    void upspeed(){
        System.out.println("加速");
    }
    void stop(){
        System.out.println("停止");
    }
}
